﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminList.aspx.cs" Inherits="PowerToolsWeb.Admin.AdminList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" rel="Stylesheet" href="../Style/admin.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="DivTitle" style="vertical-align: bottom">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td align="left">
                        <img alt="" src="../Style/admin/tb.gif" width="14" height="14" /><span>管理员列表</span>
                    </td>
                </tr>
            </table>
        </div>
        <asp:GridView ID="GridView1" Width="60%" runat="server" AutoGenerateColumns="false"
            CssClass="GridView" DataKeyNames="adminid" OnRowCommand="GridView1_RowCommand"
            OnRowDataBound="GridView1_RowDataBound">
            <Columns>
                <asp:BoundField HeaderText="管理员" DataField="loginname"></asp:BoundField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        操作</HeaderTemplate>
                    <ItemTemplate>
                        <div id="divControl" runat="server">
                            <img src="../Style/admin/edit.gif" width="10" height="10" alt="" />
                            <asp:LinkButton ID="lbEdit" runat="server" CommandArgument='<%#Eval("adminid") %>'
                                CommandName="changePWD">修改密码</asp:LinkButton>
                            &nbsp;&nbsp;|&nbsp;&nbsp;<img src="../Style/admin/del.gif" width="10" height="10"
                                alt="" />
                            <asp:LinkButton ID="lbDelete" runat="server" CommandArgument='<%#Eval("adminid") %>'
                                CommandName="deleteAdmin">删除</asp:LinkButton>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
